﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    /*
        var monday = DateTime.Now.ThisWeekMonday();
        var friday = DateTime.Now.ThisWeekFriday();

        If (DateTime.Now.IsInRange(monday, friday) {
            ...do something...
        }
     */

    public static partial class DateTimeExtensions
    {
        public static bool IsInRange(this DateTime currentDate, DateTime beginDate, DateTime endDate)
        {
            return (currentDate >= beginDate && currentDate <= endDate);
        }
    }
}
